import java.util.Random;
import java.util.Scanner;

public class GuessNumMethod2 {
    public static void main(String[] args) {
        Random random = new Random();
        int num = random.nextInt(100)+1;
        Scanner scanner = new Scanner(System.in);
        //多组输入。
        while(scanner.hasNext()) {
            int n = scanner.nextInt();
            if(n == num) {
               System.out.println("猜对了。");
               System.out.println("游戏结束。");
               break;
            } else if(n > num) {
               System.out.println("猜大了，请重新输入：");
            } else {
               System.out.println("猜小了，请重新输入：");
            }
        }
    }
}
